package com.example.demofdfs.design.decorator;

/**
 * 摩卡
 * @author chenyq
 * @email 806512500@qq.com
 * @date 2019年1月25日
 */
public class Mocha extends CondimentDecorator {

	Beverage beverage;
	
	public Mocha(Beverage beverage) {
		this.beverage = beverage;
	}

	@Override
	public String getDescription() {
		return beverage.getDescription() + ", Mocha";
	}

	@Override
	public double cost() {
		return .20 + beverage.cost();
	}

}
